﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using HtmlLaundryNuget.Models;
using System.Diagnostics;
using NetAcademia.Web.Mvc;

namespace HtmlLaundryNuget.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {
            return View(new MyData ());
        }

        [ValidateInput(false)]
        [HttpPost]
        public ActionResult Index(MyData data)
        {
            return View(data);
        }

        //[ValidateInput(false)]
        //[HttpPost]
        //public ActionResult Index(string EzTxt, [Whitelist("textnek")]string EzHtml)
        //{
        //    return View(new MyData { EzTxt = EzTxt, EzHtml = EzHtml });
        //}
    }
}
